import getlink from '@/api/getapi.js'
let head={
    state:{
        textlist:[],
        num:"huanyingguanglin"
    },
    mutations:{
        uphead(state,payload){
            state.textlist=payload
        }
    },
    actions:{
        tranlink(context,payload){
          getlink(payload).then((ok)=>{
             context.commit("uphead",ok.data.textlist) 
          })  
        }
    },
    getters:{
        upnum(state){
            return state.num.toUpperCase()
        }
    }
}
export default head